package cn.iocoder.yudao.module.product.api.property;

import cn.iocoder.yudao.module.product.api.property.dto.ProductPropertyValueDetailRespDTO;
import cn.iocoder.yudao.module.product.enums.property.PropertyValueTypeEnum;
import cn.iocoder.yudao.module.product.service.property.ProductPropertyValueService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * @author cai
 * @date 2024/04/08 12:59
 */
@Service
@Validated
public class ProductPropertyApiImpl implements ProductPropertyApi {

    @Resource
    private ProductPropertyValueService productPropertyValueService;

    @Override
    public List<ProductPropertyValueDetailRespDTO> getSpuProperty(Long spuId) {
        return productPropertyValueService.getSpuProperty(PropertyValueTypeEnum.SPU, spuId);
    }

}
